<template>
  <el-row>

    <el-row class="title">Discover</el-row>

    <Top/>

    <el-row class="fon1-content">
      <span class="fon1">Following</span>
      <span class="fon1-line"></span>
    </el-row>
    <el-row class="fon2">For You</el-row>

    <Message
        class="message1"
        height="128px"
        :IsV="true"
    >
      <img slot="head" src="../../assets/page/Avatar.png"/>
      <span slot="name">Mona</span>
      <span slot="time">10:23 AM · Dec 10, 2021</span>
      <!--   文章   -->
      <span slot="artical">
        Lorem ipsum dolor sit amet illiet es ail consectetur adipiscing elit.
      </span>
    </Message>

    <Message
        class="message2"
        height="469px"
        like-artical="213"
        comment-artical="12"
        share-artical="3"
    >
      <img src="../../assets/page/touxiang2.png" slot="head">
      <span slot="name">Account name</span>
      <span slot="time">19:44 PM · Dec 04, 2021</span>

      <span slot="artical">
        Lorem ipsum dolor sit amet illiet es ail consectetur adipiscing elit. Ultrices et pulvinar id convallis quis luctus fo rza
        <br/><a>http://ow.ly/95IZ50 P</a>
      </span>

      <img src="../../assets/page/img.png" slot="picture"/>
    </Message>

    <Message
        class="message3"
        height="128px"
        like-artical="201"
        comment-artical="23"
        share-artical="69"
    >
      <img src="../../assets/page/touxiang2.png" slot="head">
      <span slot="name">Account name</span>
      <span slot="time">11:52 AM · Dec 04, 2021</span>
      <span slot="artical">
        Lorem ipsum dolor sit amet illiet es ail  consectetur adipiscing elit.
      </span>
    </Message>

  </el-row>
</template>

<script>
// ---------------- 自定义组件 -----------------
import Top from "./Top"
import Message from "../components/Message"

export default {
  name: "Middle",
  components: {
    Top, Message
  }
}
</script>

<style scoped>
.title {
  position: absolute;
  width: 105px;
  height: 22px;
  left: 372px;
  top: 37px;

  font-family: Gotham;
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 22px;
  /* identical to box height */

  text-align: center;

  color: #BDA28D;

}

.fon1-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;

  position: absolute;
  width: 90px;
  height: 30px;
  left: 525px;
  top: 211px;

}

.fon1-line {
  position: static;
  width: 90px;
  height: 2px;
  left: 1.5px;
  top: 26px;
  z-index: 100;

  background: linear-gradient(90deg, #725A4D 6.25%, #AA8C84 100%);
  border-radius: 2px;

  /* Inside Auto Layout */

  flex: none;
  order: 1;
  flex-grow: 0;
  margin: 8px 0;
}

.fon1 {

  position: static;
  width: 87px;
  height: 16px;
  left: 1.5px;
  top: 2px;

  font-family: Roboto;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 16px;
  /* identical to box height, or 80% */

  text-align: center;

  color: #FFFFFF;


  /* Inside Auto Layout */

  flex: none;
  order: 0;
  flex-grow: 0;
  margin: 8px 0;
}

.fon2 {
  position: absolute;
  width: 60px;
  height: 16px;
  left: 709px;
  top: 218px;

  font-family: Roboto;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 16px;
  /* identical to box height, or 100% */

  text-align: center;

  color: rgba(255, 255, 255, 0.6);

  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);

}

/*-------------- message -----------------*/
.message1 {
  position: absolute;
  left: 352px;
  top: 239px;
}

.message2 {
  position: absolute;
  left: 352px;
  top: 377px;
}

.message3 {
  position: absolute;
  left: 352px;
  top: 856px;
}
</style>